package com.my.gitspringboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.concurrent.ConcurrentHashMap;

@SpringBootApplication
public class GitspringbootApplication {

	public static void main(String[] args) {
		SpringApplication.run(GitspringbootApplication.class, args);
		//启动浏览器
		//runBrowser();
	}

	public static void runBrowser(){
		String cmd = "C:\\Users\\ABC\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe http://localhost:8080";
		Runtime run = Runtime.getRuntime();
		try{
			run.exec(cmd);
			System.out.println("启动浏览器打开项目成功");
		}catch (Exception e){
			e.printStackTrace();
			System.out.println(e.getMessage());
		}
	}

}
